// Alerts
//
// Alerts are warning/info/danger/success messages that generally appear at the top of a page.
//
// Styleguide 11.

// Alerts
//
// Alerts come in four different flavours.
//
// .alert-info - Inform the user about something. It's not going to break anything if they don't see this, but it's good to know.
// .alert-warning - Warn the user about something. It's best that they heed this advice if they want everything to run smoothly.
// .alert-danger - Alert the user of a failure or if they're about to do something that has serious consequences.
// .alert-success - Let the user know that what they've tried to do has been successful.
//
// Markup:
// <div class="alert {{modifier_class}} padded">
//   This is an alert message. Take note ye all.
// </div>
//
// Styleguide 11.1.

.alert {
    padding: $alert-padding;
    border: $alert-border-width solid transparent;

    // Improve alignment and spacing of inner content
    > p,
    > ul {
        margin-bottom: 0;
    }

    > p + p {
        margin-top: 5px;
    }
}

// Alternate styles
//
// Generate contextual modifier classes for colorizing the alert.

.alert-success {
    @include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
}

.alert-info {
    @include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
}

.alert-warning {
    @include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
}

.alert-danger {
    @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
}
